package com.csjbot.weedle_auto.util


import android.os.Environment

import java.io.File

/**
 * @classname 常量的设置
 * Created by chenqi on 2016/7/23 0023.
 */
class CheckConstants {
    object Type_UP {
        val SCR_PC = 0x15.toByte()
        val REF_CMD = 0x80.toByte()
        val RESET = 0x01.toByte()
        val RESETWEIGHT = 0x02.toByte()
        val RESET_DATALEN = 0x00.toByte()
        val FACE = 0x02.toByte()
        val FACE_DATALEN = 0x01.toByte()

    }

    object Type_DOWN {
        val SCR_SLAVE = 0x51.toByte()
        val SCR_SN = 0x21.toByte()
        val WAKEUP = 0x80.toByte()//语音唤醒
        val GRAVITY = 0x81.toByte()//摸手
        val OA = 0x82.toByte()//超声波感应
        val INFRARED = 0x83.toByte()//红外感应
        val SN_PART = 0xA0.toByte()//上身板sn
        val SN_BOTTOM = 0xA1.toByte()//下身板sn
    }

    object OTHERINFOR {
        val INFRA_RED_FRONTLEFT = 4//  前左
        val INFRA_RED_FRONTRIGHT = 1//  前右
        val INFRA_RED_FRONTMIDDLE = 2// 前中
        val INFRA_RED_AFTERLEFT = 8//后左
        val INFRA_RED_AFTERRIGHT = 16//后右

        val INR_ALL = 31//全部挡住了

        val PLATE_INFRA_RED__LEFT = 1// 左手
        val PLATE_INFRA_RED__RIGHT = 2// 右手
        val PLATE_INFRA_RED__ALL = 5// 都摸了
    }

    object CHECK {
        val SCR = "急停"
        val OA = "超声波"
        val TOUCH = "摸手"
        val SN_UP = "上身SN"
        val SN_DOWN = "下身SN"
        val LEFT_P = "手臂左红外"
        val RIGHT_P = "手臂右红外"
        val LEFT = "下身左下视"
        val RIGHT = "下身右下视"
        val MID = "下身中下视"
        val LEFT_A = "下身后左下视"
        val RIGHT_A = "下身后右下视"


    }

    companion object {

        var path = Environment.getExternalStorageDirectory()//地图保存位置
    }

}
